$('#startTime').focus(function () {
    this.type = 'date';
    this.focus();
});
$('#startTime').blur(function () {
    this.type = 'text';
    this.blur();
});
$('#endTime').focus(function () {
    this.type = 'date';
    this.focus();
});
$('#endTime').blur(function () {
    this.type = 'text';
    this.blur();
});
